<?php use think\Db; ?>
<h3>订单： <a style="color:#06f;" href='{:url("OrderMember/show_order",array("id"=>$hashids->encode($data["order"]["order_id"])))}'>{$data.order.order_num_alias}</a> 售后商品列表</h3>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
		<tbody>
			<tr>
			<th colspan="2" class="th1">商品名称</th>
				<th width="83">
					{if condition="$data['order']['type'] eq config('points_goods') "}
						积分
					{else/}
						单价(元)	
					{/if}
				</th>
				<th width="137">商品数量</th>
		
			</tr>
			<?php if(isset($data['order_product'])&&is_array($data['order_product'])){ ?>
				<?php foreach ($data['order_product'] as $product) { ?>
					<tr>
						<td class="td1">
							<a class="img60" href="{:get_goods_type_info(array('type'=>$product['type'],'goods_id'=>$product['goods_id']),'url')}" target="_blank">
							<img class="jsimg"  src="IMG_ROOT{$product.image|resize=60,60}"></a>
						</td>
						<td class="td2 gray">
							<a>{$product.name}</a> 
							<br>
							<?php if($option_list=Db::query('select * from '.config('database.prefix').'order_option where order_goods_id='.$product['order_goods_id'].' and order_id='.$product['order_id'])){ ?>
								<?php foreach ($option_list as $option) { ?>
				                <br />
				                &nbsp;<small> - <?php echo $option['name']; ?>: <?php echo $option['value']; ?></small>
				                <?php } ?>
			                <?php } ?>
						</td>
						<td class="redprice oof">
							{:get_goods_type_info(array('type'=>$data['order']['type'],'price'=>$product['price']),'price')}													
						</td>
						<td><?php echo $product['quantity']; ?></td>					
																
					</tr>
				<?php } ?>
		 	<?php } ?>		
		</tbody>
</table>

	<div class="total">
		总计：<b class="red">￥<?php echo $data['total'][0]['value']; ?></b>
	</div>
